import React, { useState } from "react";
import {Input, Button,} from "antd";
import { useNavigate } from "react-router-dom";
import '../../../../styles/DepositListtop2.scss'
interface Props {
  changedepositlist:any
}
function DepositListtop2(props: Props) {
    var [data,setData] = useState('')
    var navigate = useNavigate();
  
    var search = function(){
    
      props.changedepositlist(data)
    }
    var handlenchange = function(event:any){
          const{value} = event.target
          setData(value)
          // console.log(event.target);
    }
  return (
    <div className="depositList2">
     
    
        <div className='middle'>
            <Input defaultValue={data} placeholder="请输入盘点类型ID" />
        <Input defaultValue={data} placeholder="请输入盘点类型名称	" />
            <Input defaultValue={data} onChange={handlenchange} placeholder="请输入盘点类型状态" />


            <Button type="primary" onClick={search}>
              搜索
            </Button>
        </div>
       
     
      </div>
   
  );
}

export default DepositListtop2;
